<!DOCTYPE html>
<html lang="zh_CN">

<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="Cache-Control" content="no-cache, no-store, must-revalidate">
  <meta name="Pragma" content="no-cache">
  <meta name="Expires" content="0">
  <meta content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no" name="viewport">
  <meta content="yes" name="apple-mobile-web-app-capable">
  <meta content="black" name="apple-mobile-web-app-status-bar-style">
  <meta name="screen-orientation" content="portrait">
  <meta name="full-screen" content="yes">
  <meta name="HandheldFriendly" content="true">
  <meta name="mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
  <meta content="telephone=no" name="format-detection">
  <meta content="email=no" name="format-detection">
  <title>网络服务已经断开</title>
  <link href="./static/css/reset.css" rel="stylesheet" inline />
  <link href="./static/css/index.css" rel="stylesheet" inline />
</head>

<body>
  <div id="page-network" class="size14" v-scope>
    <div class="pd-h pd-v size16">
      建议您按照以下方法调整网络服务：
    </div>
    <div class="pd-v pd-h">
      <div class=" pd-h bg-info" id="content">
      </div>
    </div>
    <div class="pd-h size12">若您已尝试上述操作仍存在问题，可使用<span class="txt-link" onClick="jump()">网络检测</span>功能检测具体原因。</div>
  </div>
  <script type="text/javascript" src="/npm/static/js/ca/ca.3.0.6.min.js"></script>
  <script type="text/javascript" src="/npm/static/js/zs/3td/zs.1.0.2.min.js"></script>
  <script src="./static/js/config.js"></script>
  <script>
    window.spmConfig = {
      'network_error': '017001'
    }
    window.CaH5 && window.CaH5.config({
      sysid: 'NETWORK_ERROR',
      hash: false,
      ver: '1.0.0'
    })
    window.CaH5 && window.CaH5.page({ spmId: window.CaH5.getSpmId('network_error') })
    var type = 0
    var channerl = ''
    var systemOff = ''
    function init() {
      var queryObj = getQuery()
      channerl = queryObj.channerl || 'default'
      systemOff = queryObj.systemOff || '0'
      // systemOff == 1 = '系统层面断开'， systemOff==0=弱网条件
      // type = 1 = ios， type=0=安卓
      console.log(queryObj, isIOS, isAndroid, 'queryObj===')
      if (systemOff == '1' && isAndroid) {
        type = 2
      } else if(systemOff == '1' && isIOS) {
        type = 1
      }
      var content = ''
      var dom = $id('content')
      console.log(type, 'type==')
      networkTxt[type].map(function (item) {
        var itemHtml = '<div class="pd-v">'
        var itemContent = ''
        item.map(function (children) {
          itemContent += '<div class="bg-info">' + children + '</div>'
        })
        content += itemHtml + itemContent + '</div>'
      })
      dom.innerHTML = content
    }

    function jump() {
      var url = 'page://network/check_entrance?' + 'channel=' + channerl + '&systemOff=' + systemOff
      console.log(url, '====')
      zs.open(url)
    }

    init()

  </script>
</body>

</html>
